


import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_my_web/pages/tools/drop_draw_board/base/DropBean.dart';
import 'package:flutter_my_web/pages/tools/drop_draw_board/event/show_property_panel_event.dart';

class DropWidgetPropertyPanelWidget extends StatefulWidget {
  const DropWidgetPropertyPanelWidget({Key? key}) : super(key: key);

  @override
  State<DropWidgetPropertyPanelWidget> createState() => _DropWidgetPropertyPanelWidgetState();
}

class _DropWidgetPropertyPanelWidgetState extends State<DropWidgetPropertyPanelWidget> {
  DropBean? dropBean;
  StreamSubscription? showPropertyPanelEventListen;
  @override
  void initState() {
    super.initState();
    showPropertyPanelEventListen = showPropertyPanelEvent.on().listen((event) {
      // print("显示");
      dropBean=(event as ShowPropertyPanelEvent).showDropBean;
      setState(() {
      });
    });
  }
  @override
  void dispose() {
    super.dispose();
    showPropertyPanelEventListen?.cancel();
  }
  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(child: Column(children: [
    ]..addAll(dropBean?.bulidPropertyPanel()??[]),),);
  }
}
